<div class="center_news_home">

    <div class="center_news_tt_home" style="padding-left: 15px;width:95%">
        <div class="toplink" style="margin-top: 0px;padding-bottom: 10px;border-bottom: 1px solid #d1d1d1"><img src="/images/iconhome.gif" /><a href="#"><b>[Trang chủ]</b></a>&raquo;<a href="#" class="pagehere">[Tin tức]</a></div>
       
        
    </div>
    <div><?php
        $arrNewCate=listAllNewsCategory($parent_id = 0);
        for($i=0;$i<count($arrNewCate);$i++) {
           
            $rsCat = getCatInfo($arrNewCate[$i]["cat_id"]);
            $rsNews = getNewsByCatHome($arrNewCate[$i]["cat_id"]);

            if($rsNews['rs']['id']) {
                 echo '<div style="float:left; width:49%;height:250px">';
                ?>
        <div class="box_cat_title"><a href="<?php echo get_link('news', 'cat', $rsCat['cat_link'])?>"><?echo $rsCat['cat_title'];?></a></div>
        <div class="section_02_box_content">               
            <a href="<?php echo get_link('news', 'detail', $rsNews['rs']['title_link'])?>"><img alt="image" src="<?php echo get_news_thumb($rsNews['rs']["image"],"100-100"); ?>"/></a>
            <a href="<?php echo get_link('news', 'detail', $rsNews['rs']['title_link'])?>"><?php echo cutString($rsNews['rs']['title'], 98);?></a>
            <br/><span class="creatDate"><?php echo get_my_date($rsNews['rs']['create_date']);?></span>
            <p><?php echo limitWord($rsNews['rs']['description'], 22);?></p>
            <a href="<?php echo get_link('news', 'detail', $rsNews['rs']['title_link'])?>" style="color:#004A89;float:right;font-size:11px;padding:18px 20px 10px 0px;text-align:right;font-weight:normal;text-transform:none;">Chi tiết</a>
            <div>
                <ul>
                            <?php
                            while($rs=$db->fetch_array($rsNews['rsOther'])) {
                                ?>
                    <li><a href="<?php echo get_link('news', 'detail', $rs['title_link'])?>"><?php echo $rs['title'];?></a></li>
                                <?php
                            }
                            ?>
                </ul>

            </div>
        </div>
                <?php
                 echo'</div>';    
            }
           
           
        }

        ?>

    </div>
</div>
